/*
 * @Author: your name
 * @Date: 2020-09-19 10:27:07
 * @LastEditTime: 2020-09-19 11:27:36
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /webpack-to-vite/vite-admin/src/router/async/config.async.js
 */
import routerMap from './router.map'
import {parseRoutes} from '../../utils/routerUtil'

// 异步路由配置
const routesConfig = [
  'login',
  'root',
  {
    router: 'exp404',
    path: '*',
    name: '404'
  },
  {
    router: 'exp403',
    path: '/403',
    name: '403'
  }
]

const options = {
  routes: parseRoutes(routesConfig, routerMap)
}

export default options
